package com.hohai.mall.demo.biz.impl;

import com.hohai.mall.common.framework.util.JsonUtil;
import com.hohai.mall.demo.biz.DemoService;
import com.hohai.mall.demo.dao.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author Xushiwei
 * @date 2019/7/1
 */
@Service
public class DemoServiceImpl implements DemoService {

    @Autowired
    UserMapper userMapper;

    @Override
    public String test() {
        return JsonUtil.toJson(userMapper.getById(1));
    }
}
